// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   DialRenderer.java

package org.achartengine.renderer;

import java.util.*;

// Referenced classes of package org.achartengine.renderer:
//			DefaultRenderer

public class DialRenderer extends DefaultRenderer
{
	public static final class Type extends Enum
	{

		public static final Type NEEDLE;
		public static final Type ARROW;
		private static final Type $VALUES[];

		public static Type[] values()
		{
			return (Type[])$VALUES.clone();
		}

		public static Type valueOf(String s)
		{
			return (Type)Enum.valueOf(org/achartengine/renderer/DialRenderer$Type, s);
		}

		static 
		{
			NEEDLE = new Type("NEEDLE", 0);
			ARROW = new Type("ARROW", 1);
			$VALUES = (new Type[] {
				NEEDLE, ARROW
			});
		}

		private Type(String s, int i)
		{
			super(s, i);
		}
	}


	private String mChartTitle;
	private float mChartTitleTextSize;
	private double mAngleMin;
	private double mAngleMax;
	private double mMinValue;
	private double mMaxValue;
	private double mMinorTickSpacing;
	private double mMajorTickSpacing;
	private List mVisualTypes;

	public DialRenderer()
	{
		mChartTitle = "";
		mChartTitleTextSize = 15F;
		mAngleMin = 330D;
		mAngleMax = 30D;
		mMinValue = 1.7976931348623157E+308D;
		mMaxValue = -1.7976931348623157E+308D;
		mMinorTickSpacing = 1.7976931348623157E+308D;
		mMajorTickSpacing = 1.7976931348623157E+308D;
		mVisualTypes = new ArrayList();
	}

	public String getChartTitle()
	{
		return mChartTitle;
	}

	public void setChartTitle(String s)
	{
		mChartTitle = s;
	}

	public float getChartTitleTextSize()
	{
		return mChartTitleTextSize;
	}

	public void setChartTitleTextSize(float f)
	{
		mChartTitleTextSize = f;
	}

	public double getAngleMin()
	{
		return mAngleMin;
	}

	public void setAngleMin(double d)
	{
		mAngleMin = d;
	}

	public double getAngleMax()
	{
		return mAngleMax;
	}

	public void setAngleMax(double d)
	{
		mAngleMax = d;
	}

	public double getMinValue()
	{
		return mMinValue;
	}

	public void setMinValue(double d)
	{
		mMinValue = d;
	}

	public boolean isMinValueSet()
	{
		return mMinValue != 1.7976931348623157E+308D;
	}

	public double getMaxValue()
	{
		return mMaxValue;
	}

	public void setMaxValue(double d)
	{
		mMaxValue = d;
	}

	public boolean isMaxValueSet()
	{
		return mMaxValue != -1.7976931348623157E+308D;
	}

	public double getMinorTicksSpacing()
	{
		return mMinorTickSpacing;
	}

	public void setMinorTicksSpacing(double d)
	{
		mMinorTickSpacing = d;
	}

	public double getMajorTicksSpacing()
	{
		return mMajorTickSpacing;
	}

	public void setMajorTicksSpacing(double d)
	{
		mMajorTickSpacing = d;
	}

	public Type getVisualTypeForIndex(int i)
	{
		if (i < mVisualTypes.size())
			return (Type)mVisualTypes.get(i);
		else
			return Type.NEEDLE;
	}

	public void setVisualTypes(Type atype[])
	{
		mVisualTypes.clear();
		mVisualTypes.addAll(Arrays.asList(atype));
	}
}
